package com.xiaoshuidi.cloud.module.rooms.controller.admin.estimate.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * 最高价格计算
 *
 * @Author Feng
 * @date 2023/5/29
 */
@Data
@Schema(description = "计算最高价请求对象")
public class HighestPriceReq {

    /**
     * 装修预估价 成本投入
     */
    @Schema(description = "装修预估价 成本投入")
    private Double decorationEvaluate;
    /**
     * 摊销期
     */
    @NotNull(message = "摊销期不可为空")
    @Min(value = 0, message = "摊销期不可小于0")
    @Max(value = 240, message = "摊销期不可大于240")
    @Schema(description = "摊销期")
    private Integer amortizationPeriod;
    /**
     * 支付周期
     */
    @NotNull(message = "支付周期不可为空")
    @Min(value = 1, message = "支付周期不可小于1")
    @Max(value = 12, message = "支付周期不可大于12")
    @Schema(description = "支付周期")
    private Integer pc;

    /**
     * 利率
     */
    @NotNull(message = "利率不可为空")
    @Min(value = 0, message = "利率不可小于0")
    @Max(value = 1, message = "利率不可大于1")
    @Schema(description = "利率")
    private Double interestRate;

    /**
     * 租金估值
     */
    @NotNull(message = "租金估值不能为空")
    @Min(value = 0, message = "租金估值不能小于0")
    @Schema(description = "租金估值")
    private Double estimatePrice;
}
